Ext.define('QMS.model.Employee', {
	extend: 'Ext.data.TreeModel',
	fields: ['id', 'name', 'surName', 'email', 'birthDay', 'dateEmployed', 'text'],
	belongsTo: 'QMS.model.Project',
	proxy: {
		type: 'ajax',
		url: 'employee',
		reader: {
			type: 'json',
			root: 'root'
		},
		api: {
			create: 'employee?do_action=create',
			read: 'employee?do_action=read',
			update: 'employee?do_action=update',
			destroy: 'employee?do_action=destroy',
		},
	}
});